package com.memd.morp.model
{

	public class PhpDBDataProxy extends Proxy implements IProxy
	{
		public static const NAME:String='PhpDBDataProxy';

		/* public var prodDataPediarix:XML;
		   public var prodDataKinrix:XML;
		   public var prodDataRotarix:XML;
		   public var prodDataBoostrix:XML;
		   public var prodDataHavrixPed:XML;
		   public var prodDataHavrixAdu:XML;
		   public var prodDataInfanrix:XML;
		   public var prodDataEngerixPed:XML;
		   public var prodDataEngerixAdu:XML;
		   public var prodDataTwinrix:XML;
		 public var prodDataFluarix:XML; */

		public function PhpDBDataProxy(data:XML=null)
		{
			super(NAME, data);
		}

		private function onDataLoaded(evt:Event):void
		{
			var result:XML=XML(evt.target.data);
			data=result;
			/**
			 * When ToolsDataProxy is done loading and parsing data, it
			 * sends a TOOLS_DATA_LOADED notification back to the framework.
			 */
			sendNotification(ApplicationConstants.TOOLS_DATA_LOADED);
		}

		public function loadToolsData(filePath:String):void
		{
			var loader:URLLoader=new URLLoader();
			loader.addEventListener(Event.COMPLETE, onDataLoaded);
			loader.load(new URLRequest(filePath));
		}

	}
}